package com.myfum.mobile.tetris.commands
{
	import com.myfum.mobile.tetris.data.TetrisMap;
	import com.myfum.mobile.tetris.events.P2PEvent;
	import com.myfum.mobile.tetris.utils.P2PHelper;
	
	import org.robotlegs.mvcs.Command;
	
	public class SendScreenCommand extends Command
	{
		[Inject]
		public var p2p:P2PHelper;
		[Inject]
		public var event:P2PEvent;
		
		public function SendScreenCommand()
		{
			super();
		}
		
		override public function execute():void{
			p2p.sendMessage(event.info);
		}
	}
}